package com.itcam.cm.product.service.impl;

import com.itcam.cm.model.entity.product.Brand;
import com.itcam.cm.product.mapper.BrandMapper;
import com.itcam.cm.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BrandServiceImpl implements BrandService {

    @Autowired
    BrandMapper brandMapper;
    @Override
    public List<Brand> findAll() {
        List<Brand> brands = brandMapper.selectAll();
        return brands;
    }
}
